package cn.itsy.dao.warnrule;

import cn.itsy.pojo.ResultPojo;
import cn.itsy.pojo.Warnrule;

import java.util.List;

/**
 * @description:
 * @author: MisterGay
 * @date: 2019-06-03 15:55
 */
public interface WarnRuleDao {
    /**
     * 查需预警规则
     */
    List<Warnrule> queryWarnruleAll(String sql);

    /**
     * 添加预警规则
     */
    void insertWarnrule(String sql, Warnrule warnrule);

    /**
     * 修改预警规则
     */
    void updateWarnrule(String sql, Warnrule warnrule);

    /**
     * 删除预警规则
     */
    void deleteWarnrule(String sql, Warnrule warnrule);

    /**
     * 执行预警方案
     */
    List<ResultPojo> queryResultPojoById(String sql, Integer id);
}
